package com.cakin.javademo;

import com.cakin.javademo.Employee;

/**
 * @ClassName: com.cakin.javademo.EmployeeTest
 * @Description: 测试类
 * @Date: 2020/6/11
 * @Author: cakin
 */
public class EmployeeTest {
    public static void main(String[] args) {
        /* 使用构造器创建两个对象 */
        Employee empOne = new Employee();
        // 调用员工empOne的一些方法
        empOne.setAge(18);
        empOne.setSalary(1000.00);
        empOne.setDesignation("高级工程师");
        empOne.setName("小明");
        empOne.printEmployee();

        // 有参构造函数
        Employee empTwo = new Employee("xiaobai",30,"架构师",5000.00);

        // 调用这两个对象的成员方法
        empTwo.printEmployee();
    }
}
